import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from 'typeorm';
import { Product } from './product.entity';
import { ProductOption } from './product-option.entity';

@Entity('cart')
export class Cart {
  @PrimaryGeneratedColumn('uuid')
  cartItemId: string;

  @ManyToOne(() => Product)
  product: Product;

  @ManyToOne(() => ProductOption)
  ProductOption: ProductOption;

  @Column('int')
  number: number;
}
